import React, {useState} from "react";

import Hello from "./components/Hello";

export default function LayOut() {
    /**
     *  父子组件通信
     *      state 父组件定义
     *      接收 state 子组件
     */

    const [username] = useState("bao")
    return(
        <div>
            {/* 将数据绑定在子组件 身上 */}
            <Hello username={username}  />
        </div>
    )
}